#include "MonitiringUserMsg.h"
#include "ui_MonitiringUserMsg.h"
#include <QDebug>
MonitiringUserMsg::MonitiringUserMsg(QWidget *parent,userModel*model) :
    QWidget(parent),
    ui(new Ui::MonitiringUserMsg),
    model(model)
{
    ui->setupUi(this);
    qDebug()<<"usermsg";
    m_checkUser=new MonitoringCheckUser(this,model);
    m_changePass=new MonitoringChangePass(this,model);
    m_changeUser=new MonitoringChangeUser(this,model);
    ui->tabWidget->addTab(m_checkUser,"信息查看");
    ui->tabWidget->addTab(m_changeUser,"信息修改");
    ui->tabWidget->addTab(m_changePass,"修改密码");
    ui->tabWidget->setCurrentWidget(m_checkUser);
//    connect(m_changeUser,&MonitoringChangeUser::changeTipsClick,this,[=](const QString&str){
//        qDebug()<<"-------"<<str;
//        emit changeTipsClick(str);
//    });

//    connect(m_changePass,&MonitoringChangePass::changeClick,this,[=](const QString&str){
//        qDebug()<<"changeclick"<<str;
//        emit changeTipsClick(str);
//    });
}

MonitiringUserMsg::~MonitiringUserMsg()
{
    delete ui;
}
